﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using eTMS.Controllers;
using eTMS.Controllers.MonHocService;

namespace eTMS.UserControls
{
    public partial class MonHocCheckList : eTMS.Controls.UserControlBase
    {
        public MonHocCheckList()
        {
            InitializeComponent();
        }
       
        private MonHocController controller;
        public void SetController(MonHocController monHocController)
        {
            controller = monHocController;
        }
        public void UpdateToScreen()
        {
            gridChonMonHoc.AutoGenerateColumns = false;
            gridChonMonHoc.DataSource = controller.Table;
        }
        private void cbkCheckAll_CheckedChanged(object sender, EventArgs e)
        {
            Commons.Common.FillTableColumnValue(controller.Table, "CHECKED", cbkCheckAll.Checked);
        }
    }
}
